package com.lam.mall.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lam.common.base.domain.BaseEntity;
import com.lam.common.validate.group.Add;

/**
 * 规格值管理对象 mall_prod_specs_value
 * 
 * @author admin
 * @date 2023-04-21
 */
@TableName("mall_prod_specs_value")
public class ProdSpecsValue implements BaseEntity{

    /** 主键 */
    @Null(groups = Add.class, message="id必须为空")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    /** 规格值名称 */
    @NotBlank(message = "规格值名称不能为空")
    @Size(max = 20, message = "规格值名称长度不能超过20个字符")
    private String specsValue;

    /** 规格ID */
    private String specsId;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    } 

    public void setSpecsValue(String specsValue) {
        this.specsValue = specsValue;
    }

    public String getSpecsValue() {
        return specsValue;
    }    
    
    public void setSpecsId(String specsId) {
        this.specsId = specsId;
    }

    public String getSpecsId() {
        return specsId;
    }    
    

}
